<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    
<!doctype html>
<html lang="en">

<%@ include file="Professor/Include_Professor_Imports.jsp"%>

    
    
<body>
<!-- HEADER -->
<div style="position: fixed; width: 100%; z-index: 1;">
<%@ include file="Professor/Include_Professor_Header.jsp"%>

<section id="secondary_bar">
<div class="user">
</div>
<div class="breadcrumbs_container"><article class="breadcrumbs"><a href="javascript:history.back()">Back</a></article></div>
</section>
<!-- end of secondary bar -->
</div>

<div id="professorBar">
	<header id="header"> 
		<hgroup>
			<h1 class="site_title"><a href="index.html">Examiner</a></h1>
		</hgroup> 
	</header> 
	
	<c:set var="user" value="${sessionScope.student}"></c:set>
	<c:if test="${empty user.firstName}">
		<c:set var="user" value="${sessionScope.professor}"></c:set>
	</c:if>
	
	<section id="secondary_bar">
		<div class="user">
			<p><c:out value="${user.firstName}"></c:out> <c:out
				value="${user.lastName}"></c:out></p>
		</div>
	</section>
	
</div>



<aside id="sidebar" class="column">
<form class="quick_search" action="ProfessorSearchServlet"><input type="text" name="searchKey"
	value="Quick Search"  onfocus="if(!this._haschanged){this.value=''};this._haschanged=true;"  >

</form>
<hr />

<c:choose>
	<c:when test="${user.getClass().getSimpleName() eq 'Professor'}">
		<h3>Exam</h3>
			<ul class="toggle">
				<li class="icn_categories"><a href="ProfessorViewExamServlet?type=Real">Live Exams</a></li>
				<li class="icn_categories"><a href="ProfessorViewExamServlet?type=Practice">Practice Exams</a></li>
				<!--			<li class="icn_tags"><a href="#">Tags</a></li>-->
			</ul>
			<h3>Question</h3>
			<ul class="toggle">
				<li class="icn_edit_article"><a href="ProfessorViewQuestionServlet">
				View & Add Questions</a></li>
			</ul>
			<h3>Examinees</h3>
			<ul class="toggle">
				<li class="icn_add_user"><a href="Student_New.jsp">Add
				New Examinee</a></li>
				<li class="icn_view_users"><a href="ViewStudentsServlet">View
				Examinees</a></li>
			</ul>
			<h3>Reports</h3>
			<ul class="toggle">
				<li class="icn_folder"><a href="#">Class List Report</a></li>
				<li class="icn_folder"><a href="JMesaExportAllServlet">Students' Exams Report</a></li>
				<li class="icn_folder"><a href="JMesaExportExamsServlet">Exam Report</a></li>
				<!--			<li class="icn_photo"><a href="#">Gallery</a></li>-->
				<!--			<li class="icn_audio"><a href="#">Audio</a></li>-->
				<!--			<li class="icn_video"><a href="#">Video</a></li>-->
			</ul>
			<h3>Admin</h3>
			<ul class="toggle">
				<li class="icn_profile"><a href="Profile.jsp">Your
				Profile</a></li>
				<li class="icn_security"><a href="Security.jsp">Security</a></li>
				<li class="icn_jump_back"><a href="../LogoutServlet">Logout</a></li>
			</ul>
	</c:when>
	<c:otherwise>
		<h3>Real Exam</h3>
			<ul class="toggle">
				<li class="icn_new_article"><a href="PreTakeExamServlet?type=Real">Take</a></li>
				<li class="icn_folder"><a href="ViewExamsServlet?type=Real">View</a></li>
				<!--			<li class="icn_tags"><a href="#">Tags</a></li>-->
			</ul>
			<h3>Practice Exam</h3>
			<ul class="toggle">
				<li class="icn_new_article"><a
					href="PreTakeExamServlet?type=Practice">Take</a></li>
				<li class="icn_folder"><a href="ViewExamsServlet?type=Practice">View</a></li>
				<!--			<li class="icn_tags"><a href="#">Tags</a></li>-->
			</ul>
			<h3>Examinee</h3>
			<ul class="toggle">
				<li class="icn_profile"><a href="Profile.jsp">Your
				Profile</a></li>
				<li class="icn_security"><a href="Security.jsp">Security</a></li>
				<li class="icn_jump_back"><a href="../LogoutServlet">Logout</a></li>
			</ul>
	
	</c:otherwise>
</c:choose>

<footer style="position:fixed;top:600px;">
<hr />
<p><strong>Copyright &copy; 2013 Beta 77 Global Services</strong></p>
<p>Theme by <a href="http://www.medialoot.com">MediaLoot</a></p>
</footer>
</aside>





<section id="main" class="column">


<article class="module width_full">
<header>
<h3>ERROR</h3>
</header>
<div class="module_content">
<p>Error <c:out value="${param.error}"></c:out></p>
<c:out value="${pageContext.errorData.requestURI}"></c:out><br>
<c:out value="${pageContext.errorData.statusCode}"></c:out>

</div>
</article>


</section>


</body>

</html>
